//
//  VideoTableViewController.m
//  Dome
//
//  Created by 沙斌 on 16/4/21.
//  Copyright © 2016年 Dxy. All rights reserved.
//

#import "VideoTableViewController.h"
#import "AllTableViewCell.h"

@interface VideoTableViewController ()

@property(strong,nonatomic) NSMutableArray *tableData;  //表格数据
@end

@implementation VideoTableViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
    //设置row的高度为自定义cell的高度
    self.tableView.rowHeight = 100;
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

#pragma mark - Table view data source

- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
#warning Incomplete implementation, return the number of sections
    return 10;
}

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
#warning Incomplete implementation, return the number of rows
    return 1;
}


- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
    static NSString *CellIdentifier = @"AllTableViewCell";
    //自定义cell类
    AllTableViewCell *cell = [[AllTableViewCell alloc]init];
    [cell initcell];
    if (cell == nil) {
        //通过xib的名称加载自定义的cell
        cell = [[[NSBundle mainBundle] loadNibNamed:@"AllTableViewCell" owner:self options:nil] lastObject];
    }
    

    return cell;

}



@end
